home *** CD-ROM | disk | FTP | other *** search
/ Languguage OS 2 / Languguage OS II Version 10-94 (Knowledge Media)(1994).ISO / gnu / gnushogi.lha / gnushogi-1.1 / src / Makefile < prev    next >
Makefile  |  1993-04-27  |  16KB  |  404 lines

  1. # Makefile for GNU Shogi
  2. # Copyright (c) 1993 Matthias Mutz
  3. #
  4. # GNU Shogi is based on GNU Chess
  5. # Copyright (c) 1992 Free Software Foundation
  6. #
  7. # This file is part of GNU SHOGI.
  8. #
  9. # GNU Shogi is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; either version 1, or (at your option)
  12. # any later version.
  13. #
  14. # GNU Shogi is distributed in the hope that it will be useful,
  15. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  16. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  17. # GNU General Public License for more details.
  18. #
  19. # You should have received a copy of the GNU General Public License
  20. # along with GNU Shogi; see the file COPYING.  If not, write to
  21. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  22. #
  23.  
  24. #
  25. # gnushogi   is a curses-based shogi.
  26. # gnushogix  is the xshogi based shogi.
  27. # gnushogir  is a plain dumb-terminal shogi (but with full variation output).
  28. # gnupdisp   display patterns in pattern textfile
  29. #
  30.  
  31. #PATH = (. ~ ~/bin /mount/public.bones/bin /usr/local /usr/ucb /usr/bin /usr/etc)
  32.  
  33. # The version number of this GNU Shogi and XShogi release
  34. VERS=    1.1
  35.  
  36. # Relevant file areas.
  37. DIST=   ../README ../doc ../misc ../src
  38.  
  39. # Home directory
  40. #HOME=/home/staff/mutz/capella
  41. HOME=//capella/u/mutz
  42.  
  43. # Distribution directory
  44. DISTDIR=$(HOME)
  45.  
  46. # Programs being distributed
  47. PROGS=gnushogi-$(VERS)
  48.  
  49. # For _pow external 
  50. LIBS= -lm
  51.  
  52. # Change these to something less transitory, like /usr/games, and then
  53. # compile. Ask your system admin / unix guru to put gnushogi.{hash,lang,book}
  54. # in $(LIBDIR).
  55. # Where the binaries live.
  56. BINDIR= $(HOME)/bin
  57.  
  58. # Where language description, our book, and the persistent hash live.
  59. #LIBDIR= /home/staff/mutz/gnu/lib
  60. LIBDIR= $(HOME)/lib
  61.  
  62. # Display routines.
  63. LCURSES=-lcurses -ltermcap
  64.  
  65. # The compiler used for compiling this software.
  66. # Use this for a plain C compiler 
  67. #CC= cc $(OPT)
  68. # Use this for DEC's ANSI C compiler on Ultrix
  69. #CC= c89 $(OPT)
  70. # Use this if you are lucky enough to have GNU CC.
  71. CC=    gcc -W  $(OPT)
  72. #CC=    cc $(OPT)
  73.  
  74. # Miscellaneous CFLAGS. Uncomment the one you need and comment the other
  75. #CFLAGS= -p -Dinline=""     -traditional-cpp
  76. #CFLAGS= -O4 -Qpath . # SunOS cc using unprotoize
  77. #CFLAGS= -O4 # Sun acc
  78. #CFLAGS= -g -traditional-cpp  # debug
  79. #CFLAGS= -O2 # DEC ANSI C (c89) on Ultrix.
  80. #CFLAGS= +O3 -Aa -D_HPUX_SOURCE -DSYSV # HPUX cc 
  81. #CFLAGS= -O   -finline-functions -fstrength-reduce -D__mips -D__LANGUAGE_C # gnu cc 1.40 on DS5000
  82. #CFLAGS= -O   -finline-functions -fstrength-reduce  # gnu cc 1.40 on others
  83. #CFLAGS= -g -w -finline-functions -fstrength-reduce # gnu cc 1.40 on others
  84. #CFLAGS= -O2 -funroll-loops -D__mips -D__LANGUAGE_C # gnu cc 2.00 on DS5000
  85. #CFLAGS= -O2 -D__alpha -D__LANGUAGE_C # gnu cc 2.00 on Flamingo
  86. #CFLAGS= -O2 -funroll-loops -traditional-cpp # gnu cc  2.00 on SunOS
  87. #CFLAGS= -g -O -finline-functions -fstrength-reduce -DOLDTIME -DNOFIONREAD # gnu cc 1.40 on sun4 (acrux)
  88. CFLAGS= -O2 -funroll-loops -traditional-cpp -I/usr/local/include/ansi # gnu cc  2.00 on apollo (capella)
  89.  
  90. # Compression program for building distribution files
  91. COMPRESS= gzip
  92. Z= z
  93. #COMPRESS= compress
  94. #Z= Z
  95.  
  96. # compile options for gnushogi
  97. # -DAG[0-4]  selects a set of values for SpaceBonus tables
  98. # -DQUIETBACKGROUND don't print post information in background ( easy OFF)
  99. # -DNOMEMSET if your machine does not support memset
  100. # -DNODYNALPHA don't dynamically adjust alpha
  101. # -DHISTORY use history killer hueristic 
  102. # -DHASGETTIMEOFDAY use gettimeofday for more accurate timing
  103. # -DLONG64 if you have 64bit longs
  104. # -DSYSV if you are using SYSV
  105. # -DCACHE  Cache static evaluations 
  106. # -DQUIETBOOKGEN Don't print errors while loading a book or generating a binbook
  107. # -DSEMIQUIETBOOKGEN Print less verbose errors while reading book or generating binbook
  108. # -DGDX  use random file based book
  109. # -DUSE_PATTERN use pattern directed scoring in openings
  110. # -DNULLMOVE include null move heuristic
  111. # -DXSHOGI create xshogi version
  112. # -DBAREBONES do not print statistics (for gnushogix version)
  113. # -DHARDTIMELIMIT reaching the time control means loosing the game
  114. # -DCHECKTRP check for search tree overflow
  115. # -DDEEPSEARCHCUT check for conditions that prevent move consideration for big plys
  116. # some debug options
  117. # -DDEBUG8 dump board,movelist,input move to /tmp/DEBUG if illegal move
  118. # -DDEBUG9 dump move list from test command
  119. # -DDEBUG10 dump board and move after search before !easy begins
  120. # -DDEBUG11 dump board when the move is output
  121. # -DDEBUG12 dump boards between moves
  122. # -DDEBUG13 dump search control information for each move to /tmp/DEBUG
  123. # -DDEBUG40 include extra values of variables for debugging  in game list
  124. # -DDEBUG41 dump post output to /tmp/DEBUG
  125. # -DDEBUG_EVAL dump evaluation of position to /tmp/EVAL on input command "eval"
  126. # the rest of the debug options are tied to the debuglevel command
  127. # -DDEBUG -DDEBUG4 set up code for debuglevel command
  128. #          debuglevel
  129. #               1 always force evaluation in evaluate
  130. #               4 print move list after search
  131. #               8 print move list after book before search
  132. #              16 print move list after each ply of search
  133. #              32 print adds to transposition table
  134. #              64 print returns from transposition table lookups
  135. #          256 print search tree as it is generated
  136. #          512 debug trace
  137. #         1024 interactive tree print
  138. #            debug? p#  where # is no. of plys to print from top of tree (default all plys)
  139. #                   XXXX moves specifying branch of tree to print (default all branches)
  140. #                   return terminates input
  141. #         2048 non-interactive trace print
  142.  
  143. # normal  
  144. OPT= -DUSE_PATTERN -DGDX -DDEBUG9 -DVERYBUGGY -DCHECKTRP -DAG4 -DQUIETBACKGROUND -DHARDTIMELIMIT -DHASGETTIMEOFDAY -DCACHE -DHISTORY -DEXACTHISTORY # -DDEEPSEARCHCUT -DSEMIQUIETBOOKGEN 
  145.  
  146. # options for genmoves.c in order to support move ordering at cost of speed
  147. # -DTESUJIBONUS  add bonus to a move that semms to be a tesuji
  148. # -DFIELDBONUS   add bonus to regular moves
  149. # -DDROPBONUS    add bonus to drops
  150.  
  151. GENOPT= -DTESUJIBONUS -DFIELDBONUS -DDROPBONUS
  152. #GENOPT= -DTESUJIBONUS -DDROPBONUS
  153.  
  154. # Special options for gnushogix
  155. XSHOGI= -DXSHOGI -DBAREBONES -DHARDTIMELIMIT
  156.  
  157. # Debug options for gnushogir             
  158. DEBUG= -DDEBUG -DDEBUG41 -DDEBUG9 -DDEBUG10 # -DBOOKTEST -DCACHETEST -DHASHTEST
  159.  
  160. # The hashfile is a record of positions seen. It is used by
  161. # GNU Shogi to avoid making the same mistakes, a form of learning.
  162. HASH=    -DHASHFILE=\"$(LIBDIR)/gnushogi.hash\"
  163.  
  164. # The "book" is a record of the first few moves, for playing good
  165. # moves easily and quickly, saving time, and irritating the human
  166. # opponent.
  167. BOOK=    -DBOOK=\"$(LIBDIR)/gnushogi.book\"
  168. #BOOK=    
  169. BINBOOK = -DBINBOOK=\"$(LIBDIR)/gnushogi.book.data\"
  170.  
  171. # The language file describes capabilities of the program. Perhaps
  172. # it is useful for non-English speaking countries and customizing
  173. # for their convenience and shogi happiness.
  174. LANG= -DLANGFILE=\"$(LIBDIR)/gnushogi.lang\"
  175.  
  176. # The pattern file contains various opening patterns. The program tries to
  177. # obtain such a pattern in the opening stage. Sequences of opening
  178. # patterns may be described in order to support the correct order of moves.
  179. PATTERN= -DPATTERNFILE=\"$(LIBDIR)/gnushogi.pattern\"
  180.  
  181. all : gnushogi gnushogix gnushogir 
  182.  
  183. gnushogi: mainN.o bookN.o genmovesN.o patternN.o ataks.o utilN.o evalN.o initN.o searchN.o dspcomN.o uxdsp.o
  184.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -o gnushogi mainN.o bookN.o genmovesN.o patternN.o ataks.o utilN.o evalN.o initN.o searchN.o dspcomN.o uxdsp.o $(LCURSES) $(LIBS)
  185.  
  186. gnushogix: mainX.o bookX.o genmovesX.o patternX.o ataks.o utilX.o evalX.o initX.o searchX.o dspcomX.o nondspX.o
  187.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -o gnushogix mainX.o bookX.o genmovesX.o patternX.o ataks.o utilX.o evalX.o initX.o searchX.o dspcomX.o nondspX.o $(LIBS)
  188.  
  189. gnushogir: mainN.o bookN.o genmovesR.o patternR.o ataks.o utilN.o evalN.o initN.o searchR.o dspcomR.o nondspR.o
  190.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -o gnushogir mainN.o bookN.o genmovesR.o patternR.o ataks.o utilN.o evalN.o initN.o searchR.o dspcomR.o nondspR.o $(LIBS)
  191.  
  192. Dgnushogir: mainDR.o bookDR.o genmovesDR.o patternDR.o ataks.o utilDR.o evalDR.o initDR.o searchDR.o dspcomDR.o nondspDR.o
  193.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -o gnushogir mainDR.o bookDR.o genmovesDR.o patternDR.o ataks.o utilDR.o evalDR.o initDR.o searchDR.o dspcomDR.o nondspDR.o $(LIBS) $(LIBS)
  194.  
  195. gnuan: mainN.o bookN.o genmovesN.o patternN.o ataks.o utilN.o evalN.o initN.o searchN.o gnuan.o
  196.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -o gnuan mainN.o bookN.o genmovesN.o pattern.o ataks.o utilN.o evalN.o initN.o searchN.o gnuan.o $(LIBS)
  197.  
  198. gdxbkstats: gdxbkstats.o
  199.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(BINBOOK) -o gdxbkstats gdxbkstats.o
  200.  
  201. gnupdisp: nondspDR.o dspcomDR.o bookN.o genmovesN.o patternDR.o ataks.o utilN.o evalN.o initN.o searchN.o gnupdisp.o
  202.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -o gnupdisp patternDR.o bookN.o genmovesN.o ataks.o utilN.o evalN.o searchN.o initN.o nondspDR.o dspcomDR.o gnupdisp.o $(LIBS)
  203.  
  204. size_test: nondspR.o dspcomR.o bookN.o genmovesN.o patternR.o ataks.o utilN.o evalN.o initN.o searchN.o pattern.o size_test.o
  205.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -o size_test patternR.o bookN.o genmovesN.o ataks.o utilN.o evalN.o searchN.o initN.o nondspR.o dspcomR.o size_test.o $(LIBS)
  206.  
  207. gnupdisp.o: gnupdisp.c pattern.h gnushogi.h 
  208.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(BINBOOK) $(PATTERN) -c gnupdisp.c
  209.  
  210. mainN.o: main.c gnushogi.h version.h
  211.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(BINBOOK) -c main.c
  212.     mv main.o mainN.o
  213.  
  214. mainX.o: main.c gnushogi.h version.h
  215.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(BINBOOK) $(XSHOGI) -c main.c
  216.     mv main.o mainX.o
  217.  
  218. mainDR.o: main.c gnushogi.h version.h
  219.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(BINBOOK) -c main.c
  220.     mv main.o mainDR.o
  221.  
  222. genmovesN.o: genmoves.c gnushogi.h version.h
  223.     $(CC) $(GENOPT) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c genmoves.c
  224.     mv genmoves.o genmovesN.o
  225.  
  226. genmovesR.o: genmoves.c gnushogi.h version.h
  227.     $(CC) -DNONDSP $(GENOPT) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c genmoves.c
  228.     mv genmoves.o genmovesR.o
  229.  
  230. genmovesDR.o: genmoves.c gnushogi.h version.h
  231.     $(CC) $(DEBUG) $(GENOPT) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c genmoves.c
  232.     mv genmoves.o genmovesDR.o
  233.  
  234. genmovesX.o: genmoves.c gnushogi.h version.h
  235.     $(CC) $(GENOPT) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(XSHOGI) \
  236.         -c genmoves.c
  237.     mv genmoves.o  genmovesX.o
  238.  
  239. bookN.o: book.c gnushogi.h version.h ataks.h
  240.     $(CC) -DNONDSP $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(BINBOOK) -c book.c 
  241.     mv book.o bookN.o
  242.  
  243. bookX.o: book.c gnushogi.h version.h ataks.h
  244.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(XSHOGI) $(BINBOOK) \
  245.         -c book.c
  246.     mv book.o  bookX.o
  247.  
  248. bookDR.o: book.c gnushogi.h version.h ataks.h
  249.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(BINBOOK) \
  250.         -c book.c
  251.     mv book.o  bookDR.o
  252.  
  253. patternN.o: pattern.c gnushogi.h pattern.h
  254.     $(CC) $(CFLAGS) $(PATTERN) -c pattern.c
  255.     mv pattern.o  patternN.o
  256.  
  257. patternX.o: pattern.c gnushogi.h pattern.h
  258.     $(CC) $(CFLAGS) $(PATTERN) $(XSHOGI) -c pattern.c
  259.     mv pattern.o  patternX.o
  260.  
  261. patternR.o: pattern.c gnushogi.h pattern.h
  262.     $(CC) $(CFLAGS) $(PATTERN) -DNONDSP -c pattern.c
  263.     mv pattern.o  patternR.o
  264.  
  265. patternDR.o: pattern.c gnushogi.h pattern.h
  266.     $(CC) $(CFLAGS) $(PATTERN) $(DEBUG) -c pattern.c
  267.     mv pattern.o  patternDR.o
  268.  
  269. ataks.o: ataks.h ataks.c gnushogi.h version.h
  270.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c ataks.c
  271.  
  272. utilN.o: util.c gnushogi.h version.h
  273.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c util.c
  274.     mv util.o utilN.o
  275.  
  276. utilX.o: util.c gnushogi.h version.h
  277.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(XSHOGI) -c util.c
  278.     mv util.o utilX.o
  279.  
  280. utilDR.o: util.c gnushogi.h version.h
  281.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c util.c
  282.     mv util.o utilDR.o
  283.  
  284. evalN.o: eval.c gnushogi.h version.h pattern.h
  285.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c eval.c
  286.     mv eval.o evalN.o
  287.  
  288. evalX.o: eval.c gnushogi.h version.h pattern.h
  289.     $(CC) $(XSHOGI) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c eval.c
  290.     mv eval.o evalX.o
  291.  
  292. evalDR.o: eval.c gnushogi.h version.h pattern.h
  293.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c eval.c
  294.     mv eval.o evalDR.o
  295.  
  296. initN.o: init.c gnushogi.h version.h pattern.h
  297.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -DNONDSP -c init.c
  298.     mv init.o initN.o
  299.  
  300. initX.o: init.c gnushogi.h version.h pattern.h
  301.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) $(XSHOGI) -c init.c
  302.     mv init.o  initX.o
  303.  
  304. initDR.o: init.c gnushogi.h version.h pattern.h
  305.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c init.c
  306.     mv init.o initDR.o
  307.  
  308. searchN.o: search.c gnushogi.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  309.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c search.c
  310.     mv search.o searchN.o
  311.  
  312. searchX.o: search.c gnushogi.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  313.     $(CC) $(XSHOGI) $(CFLAGS) $(HASH) $(LANG) $(BOOK) \
  314.         -c search.c 
  315.     mv search.o searchX.o
  316.  
  317. searchR.o: search.c gnushogi.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  318.     $(CC) -DNONDSP $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c search.c
  319.     mv search.o searchR.o
  320.  
  321. searchDR.o: search.c gnushogi.h version.h debug512.h debug10.h debug13.h debug16.h debug256.h debug4.h debug40.h debug41.h debug64.h debug8.h
  322.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c search.c
  323.     mv search.o searchDR.o
  324.  
  325. uxdsp.o: uxdsp.c gnushogi.h version.h
  326.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c uxdsp.c
  327.  
  328. nondspX.o: nondsp.c gnushogi.h version.h
  329.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -DNONDSP $(XSHOGI) \
  330.         -c nondsp.c 
  331.     mv nondsp.o nondspX.o
  332.  
  333. nondspR.o: nondsp.c gnushogi.h version.h
  334.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -DNONDSP \
  335.         -c nondsp.c 
  336.     mv nondsp.o nondspR.o
  337.  
  338. nondspDR.o: nondsp.c gnushogi.h version.h
  339.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -DNONDSP \
  340.         -c nondsp.c 
  341.     mv nondsp.o nondspDR.o
  342.  
  343. dspcomN.o: dspcom.c gnushogi.h version.h
  344.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -c dspcom.c
  345.     mv dspcom.o dspcomN.o
  346.  
  347. dspcomX.o: dspcom.c gnushogi.h version.h
  348.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -DNONDSP $(XSHOGI) \
  349.         -c dspcom.c 
  350.     mv dspcom.o dspcomX.o
  351.  
  352. dspcomR.o: dspcom.c gnushogi.h version.h
  353.     $(CC) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -DNONDSP -DNOFIONREAD \
  354.         -c dspcom.c 
  355.     mv dspcom.o dspcomR.o
  356.  
  357. dspcomDR.o: dspcom.c gnushogi.h version.h
  358.     $(CC) $(DEBUG) $(CFLAGS) $(HASH) $(LANG) $(BOOK) -DNONDSP -DNOFIONREAD \
  359.         -c dspcom.c 
  360.     mv dspcom.o dspcomDR.o
  361.  
  362. gnushogi.book.data:
  363.     -rm ./gnushogi.book.data
  364.     echo quit >test
  365. #    cat ../misc/new.games/game?? > /tmp/t
  366.     cat ../misc/SHOGI.book > /tmp/t
  367.     cat ../misc/basic.book >> /tmp/t
  368.     cat ../misc/some.openings/opening?? >> /tmp/t
  369.     cat ../misc/shogi-l.games/*match-?? ../misc/shogi-l.games/game?? >> /tmp/t
  370.     cat test| ./gnushogir -b /tmp/t -B ./gnushogi.book.data -S 8000 -P 40 3 0
  371.     rm test /tmp/t
  372.  
  373.  
  374. distribution:
  375.     -patchlevel=`cat $(DISTDIR)/gnushogi-$(VERS)/src/version.h|grep patchlevel|sed -e 's/[^0-9]//g'` ;\
  376.     echo "GNU patchlevel is $$patchlevel" ;\
  377.     cd $(DISTDIR) ;\
  378.     rm -f gnushogi.tar.$(VERS).$(Z)* ;\
  379.     tar cf - $(PROGS) | $(COMPRESS) > $(DISTDIR)/gnushogi-$(VERS).pl$$patchlevel.tar.$(Z) ;\
  380. #    rm -f gnushogi.tar.$(VERS).$(Z).uu* ;\
  381. #    uuencode gnushogi-$(VERS).pl$$patchlevel.tar.$(Z) gnushogi-$(VERS).pl$$patchlevel.tar.$(Z) > gnushogi-$(VERS).pl$$patchlevel.tar.$(Z).uu ;\
  382. #    rm -f x?? ;\
  383. #    split -2500 gnushogi-$(VERS).pl$$patchlevel.tar.$(Z).uu ;\
  384. #    for i in x??; do \
  385. #      mv $$i $(DISTDIR)/GNU_Shogi_$$i; \
  386. #    done
  387.  
  388. install: 
  389.     -cp gnushogix $(BINDIR)/gnushogix
  390.     -cp gnushogir $(BINDIR)/gnushogir
  391.     -cp gnushogi $(BINDIR)/gnushogi
  392.     -cp gnupdisp $(BINDIR)/gnupdisp
  393. #    -cp gnuan $(BINDIR)/gnuan
  394.     -cp ./gnushogi.book.data $(LIBDIR)/gnushogi.book.data
  395.     -cp ../misc/gnushogi.lang $(LIBDIR)/gnushogi.lang
  396.     -cp ../misc/gnushogi.pattern $(LIBDIR)/gnushogi.pattern
  397.  
  398. clean:
  399.     -rm -f gnushogix gnushogi gnushogir gnuan gnupdisp size_test 
  400.     -echo $(DISTDIR)/gnushogi-$(VERS)
  401.     -rm -f $(DISTDIR)/gnushogi-$(VERS)/src/gnushogi.book.data
  402.     -find $(DISTDIR)/gnushogi-$(VERS) \( -name '*.o' -o -name '*~' -o -name 'CL*' -o -name 'PATCH*' -o -name '#*#' -o -name '%*%' -o -name '*orig' -o -name 'CL*' -o -name '*prt' -o -name '*bak' -o -name '*BAK' \) -exec rm -f {} \;
  403.  
  404.